package cn.tedu.egnotice1.mapper;

import cn.tedu.egnotice1.pojo.entity.Notice;
import cn.tedu.egnotice1.pojo.vo.NoticeListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NoticeMapper {
    int insertNotice(Notice notice);

    List<NoticeListVO> selectByQuery(@Param("title")String title,@Param("type")  Integer type);

    Notice selectById(Long id);

    int deleteNoticeById(Long id);

    int updateNotice(Notice notice);
}
